package com.hue.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.math.BigDecimal;

@Component
@FeignClient(value = "seata-account-service")
public interface AccountService {
    @GetMapping("/account/update/{userId}/{num}")
    public void updateAccount(@PathVariable("userId")long userId, @PathVariable("num") BigDecimal num);
}
